home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
AMIGA
/
AMICUS
/
AMICUS25.ADF
/
Dodge
/
Dodge.mod
< prev
next >
Wrap
Text File
|
1989-01-26
|
1KB
|
38 lines
MODULE Dodge; (* For Benchmark Modula-2 BY Mike SCARY Scalora *)
(* Dodge 1.0 Mike Scalora PLink : SCARY
This MODULE is public domain. Freely distributable as long as this
notice stays in.
This program was originally uploaded to PeopleLink's Amiga Zone. The Amiga
Zone has well over 2700 members, and a library of thousands of public domain
files. If you're interested in joining us, call 800-524-0100 (voice)
or 800-826-8855 (modem). *)
FROM Preferences IMPORT Preferences, GetPrefs, SetPrefs;
FROM AmigaDOS IMPORT DateStampRecord, DateStamp;
FROM SYSTEM IMPORT ADR, ADDRESS, BYTE;
FROM System IMPORT argc, argv;
VAR
MyP : Preferences;
DS : DateStampRecord;
MV : LONGINT;
BEGIN
MV := 5;
IF argc>=2 THEN
IF (argv^[1]^[0]='7') OR (argv^[1]^[0]='9') THEN
MV := LONGINT(ORD(argv^[1]^[0])-ORD('0')); END;
END;
IF GetPrefs(ADR(MyP),SIZE(MyP))=ADDRESS(0) THEN; END;
DateStamp(DS);
DS.dsTick := (DS.dsTick MOD (MV)) - (MV DIV 2D);
MyP.ViewXOffset := BYTE(LONGINT(MyP.ViewXOffset) + DS.dsTick);
DateStamp(DS);
DS.dsTick := (DS.dsTick MOD (MV)) - (MV DIV 2D);
MyP.ViewYOffset := BYTE(LONGINT(MyP.ViewYOffset) + DS.dsTick);
IF SetPrefs(ADR(MyP),SIZE(MyP),FALSE)=ADDRESS(0) THEN; END;
END Dodge.